import { GoodsList } from "@/hooks/goods";
import { isToken } from "@/hooks";
export async  function GetGoodsList(history,setState,status){
    let token = await isToken();
    if (!token) {
      history.push("/login");
      return;
    }
    const arr = await GoodsList(token, status);
    setState(arr);
  };